﻿@{
    ViewBag.Title = "WaitingList";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>WaitingList</h2>

@model IEnumerable<ShivamEMR.Model.Domain.CRMDomain.Assignment>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

 
 
<table cellspacing="10">
    <tr>
        <th></th>
        <th>
            DateAndTime
        </th>         
       
        <th>
           Assigned Person
        </th>
           <th>
            Occasion
        </th>
          <th>
            Notes
        </th>

        <th>
            Venue
        </th>
       
   
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Select", "DoctorDashboard", "Patient", new { area = "Patient", id = item.ID }, null)             
        </td>
        <td>
			@String.Format("{0:g}", item.DateAndTime)
        </td>

           <td>
			@(item.Person == null ? "None" : item.Person.FullName)
        </td>

        <td>
			@item.Occasion
        </td>

        <td>
			@item.Notes
        </td>
      
     
        <td>
			@Html.DisplayTextFor(_ => item.Venue.Title).ToString()
        </td>
      
     
    </tr>
}

</table>


